<?php

/**
 *\Yii::$app->params["sidebar"] = [
 *    [
 *        'label' => 'Overview3',
 *        'url' => ['/yii/bootstrap/index'],
 *        'items' => [
 *            [
 *                'label' => 'Reports2',
 *                'items' => [
 *                    ['label' => 'Reports3', 'url' => ['/yii/bootstrap/index', 'page' => 'overview']],
 *                    ['label' => 'Reports4', 'url' => ['/yii/bootstrap/index', 'page' => 'overview']],
 *                ]
 *            ],
 *            ['label' => 'Reports', 'url' => ['javascript:void(0)']],
 *            ['label' => 'Reports', 'url' => ['javascript:void(0)']],
 *            ['label' => 'Reports', 'url' => ['javascript:void(0)']],
 *        ]
 *    ],
 *    ['label' => 'Reports', 'url' => ['/yii/bootstrap/index']],
 *    ['label' => 'Analytics', 'url' => ['/yii/bootstrap/index']],
 *    ['label' => 'Export', 'url' => ['/yii/bootstrap/index']],
 *    ['label' => 'Analytics', 'url' => ['/yii/bootstrap/index1']],
 *];
 *
 *
 *
 */

echo '<div class="sidebar">';
echo \frontend\modules\yii\widgets\Menu::widget([
    'items' => Yii::$app->params["sidebar"] ?: [],
]);
echo '</div>';
